Optimal. Leaf size=96 \[ -\frac {5 b^3 \tanh ^{-1}\left (\frac {\sqrt {a+\frac {b}{x}}}{\sqrt {a}}\right )}{8 a^{7/2}}+\frac {5 b^2 x \sqrt {a+\frac {b}{x}}}{8 a^3}-\frac {5 b x^2 \sqrt {a+\frac {b}{x}}}{12 a^2}+\frac {x^3 \sqrt {a+\frac {b}{x}}}{3 a} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.04, antiderivative size = 96, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 4, integrand size = 15, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.267, Rules used = {266, 51, 63, 208} \[ \frac {5 b^2 x \sqrt {a+\frac {b}{x}}}{8 a^3}-\frac {5 b^3 \tanh ^{-1}\left (\frac {\sqrt {a+\frac {b}{x}}}{\sqrt {a}}\right )}{8 a^{7/2}}-\frac {5 b x^2 \sqrt {a+\frac {b}{x}}}{12 a^2}+\frac {x^3 \sqrt {a+\frac {b}{x}}}{3 a} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 51
Rule 63
Rule 208
Rule 266
Rubi steps
\begin {align*} \int \frac {x^2}{\sqrt {a+\frac {b}{x}}} \, dx &=-\operatorname {Subst}\left (\int \frac {1}{x^4 \sqrt {a+b x}} \, dx,x,\frac {1}{x}\right )\\ &=\frac {\sqrt {a+\frac {b}{x}} x^3}{3 a}+\frac {(5 b) \operatorname {Subst}\left (\int \frac {1}{x^3 \sqrt {a+b x}} \, dx,x,\frac {1}{x}\right )}{6 a}\\ &=-\frac {5 b \sqrt {a+\frac {b}{x}} x^2}{12 a^2}+\frac {\sqrt {a+\frac {b}{x}} x^3}{3 a}-\frac {\left (5 b^2\right ) \operatorname {Subst}\left (\int \frac {1}{x^2 \sqrt {a+b x}} \, dx,x,\frac {1}{x}\right )}{8 a^2}\\ &=\frac {5 b^2 \sqrt {a+\frac {b}{x}} x}{8 a^3}-\frac {5 b \sqrt {a+\frac {b}{x}} x^2}{12 a^2}+\frac {\sqrt {a+\frac {b}{x}} x^3}{3 a}+\frac {\left (5 b^3\right ) \operatorname {Subst}\left (\int \frac {1}{x \sqrt {a+b x}} \, dx,x,\frac {1}{x}\right )}{16 a^3}\\ &=\frac {5 b^2 \sqrt {a+\frac {b}{x}} x}{8 a^3}-\frac {5 b \sqrt {a+\frac {b}{x}} x^2}{12 a^2}+\frac {\sqrt {a+\frac {b}{x}} x^3}{3 a}+\frac {\left (5 b^2\right ) \operatorname {Subst}\left (\int \frac {1}{-\frac {a}{b}+\frac {x^2}{b}} \, dx,x,\sqrt {a+\frac {b}{x}}\right )}{8 a^3}\\ &=\frac {5 b^2 \sqrt {a+\frac {b}{x}} x}{8 a^3}-\frac {5 b \sqrt {a+\frac {b}{x}} x^2}{12 a^2}+\frac {\sqrt {a+\frac {b}{x}} x^3}{3 a}-\frac {5 b^3 \tanh ^{-1}\left (\frac {\sqrt {a+\frac {b}{x}}}{\sqrt {a}}\right )}{8 a^{7/2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] time = 0.01, size = 37, normalized size = 0.39 \[ -\frac {2 b^3 \sqrt {a+\frac {b}{x}} \, _2F_1\left (\frac {1}{2},4;\frac {3}{2};\frac {b}{a x}+1\right )}{a^4} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.75, size = 151, normalized size = 1.57 \[ \left [\frac {15 \, \sqrt {a} b^{3} \log \left (2 \, a x - 2 \, \sqrt {a} x \sqrt {\frac {a x + b}{x}} + b\right ) + 2 \, {\left (8 \, a^{3} x^{3} - 10 \, a^{2} b x^{2} + 15 \, a b^{2} x\right )} \sqrt {\frac {a x + b}{x}}}{48 \, a^{4}}, \frac {15 \, \sqrt {-a} b^{3} \arctan \left (\frac {\sqrt {-a} \sqrt {\frac {a x + b}{x}}}{a}\right ) + {\left (8 \, a^{3} x^{3} - 10 \, a^{2} b x^{2} + 15 \, a b^{2} x\right )} \sqrt {\frac {a x + b}{x}}}{24 \, a^{4}}\right ] \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.17, size = 115, normalized size = 1.20 \[ \frac {1}{24} \, b^{3} {\left (\frac {15 \, \arctan \left (\frac {\sqrt {\frac {a x + b}{x}}}{\sqrt {-a}}\right )}{\sqrt {-a} a^{3}} - \frac {33 \, a^{2} \sqrt {\frac {a x + b}{x}} - \frac {40 \, {\left (a x + b\right )} a \sqrt {\frac {a x + b}{x}}}{x} + \frac {15 \, {\left (a x + b\right )}^{2} \sqrt {\frac {a x + b}{x}}}{x^{2}}}{{\left (a - \frac {a x + b}{x}\right )}^{3} a^{3}}\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.01, size = 164, normalized size = 1.71 \[ \frac {\sqrt {\frac {a x +b}{x}}\, \left (-24 a \,b^{3} \ln \left (\frac {2 a x +b +2 \sqrt {\left (a x +b \right ) x}\, \sqrt {a}}{2 \sqrt {a}}\right )+9 a \,b^{3} \ln \left (\frac {2 a x +b +2 \sqrt {a \,x^{2}+b x}\, \sqrt {a}}{2 \sqrt {a}}\right )-36 \sqrt {a \,x^{2}+b x}\, a^{\frac {5}{2}} b x -18 \sqrt {a \,x^{2}+b x}\, a^{\frac {3}{2}} b^{2}+48 \sqrt {\left (a x +b \right ) x}\, a^{\frac {3}{2}} b^{2}+16 \left (a \,x^{2}+b x \right )^{\frac {3}{2}} a^{\frac {5}{2}}\right ) x}{48 \sqrt {\left (a x +b \right ) x}\, a^{\frac {9}{2}}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 2.35, size = 137, normalized size = 1.43 \[ \frac {5 \, b^{3} \log \left (\frac {\sqrt {a + \frac {b}{x}} - \sqrt {a}}{\sqrt {a + \frac {b}{x}} + \sqrt {a}}\right )}{16 \, a^{\frac {7}{2}}} + \frac {15 \, {\left (a + \frac {b}{x}\right )}^{\frac {5}{2}} b^{3} - 40 \, {\left (a + \frac {b}{x}\right )}^{\frac {3}{2}} a b^{3} + 33 \, \sqrt {a + \frac {b}{x}} a^{2} b^{3}}{24 \, {\left ({\left (a + \frac {b}{x}\right )}^{3} a^{3} - 3 \, {\left (a + \frac {b}{x}\right )}^{2} a^{4} + 3 \, {\left (a + \frac {b}{x}\right )} a^{5} - a^{6}\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 1.40, size = 77, normalized size = 0.80 \[ \frac {11\,x^3\,\sqrt {a+\frac {b}{x}}}{8\,a}-\frac {5\,x^3\,{\left (a+\frac {b}{x}\right )}^{3/2}}{3\,a^2}+\frac {5\,x^3\,{\left (a+\frac {b}{x}\right )}^{5/2}}{8\,a^3}+\frac {b^3\,\mathrm {atan}\left (\frac {\sqrt {a+\frac {b}{x}}\,1{}\mathrm {i}}{\sqrt {a}}\right )\,5{}\mathrm {i}}{8\,a^{7/2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 7.92, size = 128, normalized size = 1.33 \[ \frac {x^{\frac {7}{2}}}{3 \sqrt {b} \sqrt {\frac {a x}{b} + 1}} - \frac {\sqrt {b} x^{\frac {5}{2}}}{12 a \sqrt {\frac {a x}{b} + 1}} + \frac {5 b^{\frac {3}{2}} x^{\frac {3}{2}}}{24 a^{2} \sqrt {\frac {a x}{b} + 1}} + \frac {5 b^{\frac {5}{2}} \sqrt {x}}{8 a^{3} \sqrt {\frac {a x}{b} + 1}} - \frac {5 b^{3} \operatorname {asinh}{\left (\frac {\sqrt {a} \sqrt {x}}{\sqrt {b}} \right )}}{8 a^{\frac {7}{2}}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________